{include file="public/header" /}
<style type="text/css">
    .gray-bg{ background: #fff; }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="wrapper wrapper-content">
        <div class="row">
            <form class="form-horizontal" method="post">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型：</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="type">
                                {foreach $type as $value => $item}
                                <option value="{$value}" {if isset($name.type) and $name.type eq $value}selected="selected"{/if}>{$item}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称：</label>
                        <div class="col-sm-9">
                            <input type="text" name="name" class="form-control" value="{$name.name|default=''}" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input type="text" name="sort" class="form-control" value="{$name.sort|default=0}" />
                            <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 数字越小越靠前</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">隐藏：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" name="is_hide" value="1" {if !empty($name.is_hide) and $name.is_hide eq 1}checked="checked"{/if} /> 是
                                </label>
                                <label>
                                    <input type="radio" name="is_hide" value="0" {if empty($name.is_hide)}checked="checked"{/if} /> 否
                                </label>
                            </div>
                        </div>
                    </div>
                    <input type="hidden" name="id" value="{$name.id|default='0'}" />
                </div>
            </form>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/iCheck/icheck.min.js"}
{load href="__STYLE__/admin/plugins/iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        });
    });
</script>
{include file="public/bottom" /}